package service.visitor;

import domain.Visitors;

import java.util.ArrayList;

public interface VisitorService {
    /**
     * 新建访客信息
     * @param room_id,community_id,name,phone,idcard,carid,photo_img,reason,cometime,validtime
     * @return int
     * @author 夏天
     * @date 2020/7/23 15:07
     */
    public int CreatVisitor(int room_id,int community_id,String name,String phone,String idcard,String carid,String photo_img,String reason,String cometime,String validtime) ;

    /**
     * 通过room_id查询访客列表
     * @param room_id
     * @return ArrayList
     * @author 夏天
     * @date 2020/7/23 15:18
     */
    public ArrayList<Visitors> getVisitors(int room_id);

    /**
     * 删除访客信息
     * @param visitors_id
     * @return int
     * @author 夏天
     * @date 2020/7/23 15:31
     */
    public  int DelectVisitors(int visitors_id);

    /**
     * 查看单条数据的详细信息
     * @param visitors_id
     * @return Visitors
     * @author 夏天
     * @date 2020/7/23 15:37
     */
    public  Visitors seeInfo(int visitors_id);

    /**
     * 更新访客信息
     * @param visitors_id,phone,idcard,carid,photo_img,reason,cometime,validtime
     * @retrun int
     * @author 夏天
     * @date 2020/7/23 16:09
     */
    public  int UpdateVisitor(int visitors_id,String phone,String idcard,String carid,String photo_img,String reason,String cometime,String validtime);
}
